﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kinect_Interface_Prototype_1.Interface_Design
{
    public abstract partial class OnOffControl : UserControl
    {
        protected bool state;
        public bool State { get { return state; } }

        public OnOffControl(int x, int y)
        {
            InitializeComponent();
            state = false;

            this.Location = new Point(x, y);
        }

        public OnOffControl(bool state, int x, int y)
        {
            InitializeComponent();

            this.state = state;
            this.Location = new Point(x, y);
        }

        public void ToggleState(bool state)
        {
            this.state = state;
            SetImage();
        }

        protected abstract void SetImage();
           
    }

    public enum OnOffControlType
    {
        GestureControl,
        MouseControl,
        SkeletalTracking,
        VoiceCommands
    }
}
